Outline
ROOTOUTLINE / PAGEOUTLINE
ROOTOUTLINE:
Outlines are like Tree control of the PDF pages. It is easy for navigation and arrangement of the whole doc. This command is used to create a simple ROOT. It will not point/refer any page in the PDF doc. NAME clause should be used to refer the name of the root in the future. If you omit PARENT, the outline will be a ROOT node. Otherwise, it will be a sub-root of a parent root/node.
Syntax:
SET HPDFDOC ROOTOUTLINE TITLE cTitle ;
NAME cName ;
[ PARENT cParent ]
Source code example:
SET HPDFDOC ROOTOUTLINE TITLE "Index" NAME "INDEX"
SET HPDFDOC ROOTOUTLINE TITLE "Sub Index" NAME "SUBINDEX" PARENT "INDEX"
PAGEOUTLINE:
Outlines are like Tree control of the PDF pages. It is easy for navigation and arrangement of the whole doc. This command is used to create the outline reference of the current page in the doc.
If the PARENT clause is omitted, the current page will be placed as a root. Use PARENT clause to make the current page reference to be inside a root.
The root can be a ROOTOUTLINE or a PAGEOUTLINE referenced by its NAME. If you specify NAME clause, the page reference can be used as a ROOT and can be parent of other ROOTOUTLINE or PAGEOUTLINE.
The current page can be referred in multiple outlines also. This command can be called only between START HPDFPAGE and END HPDFPAGE.
Syntax:
SET HPDFDOC PAGEOUTLINE TITLE cTitle ;
[ NAME cName ];
[ PARENT cParent ]
Source code example:
SET HPDFDOC PAGEOUTLINE TITLE "Index Page" NAME "INDEX"
SET HPDFDOC PAGEOUTLINE TITLE "Node Page" PARENT "INDEX"
SET HPDFDOC PAGEOUTLINE TITLE "Intermediate Index Page" NAME "IIP" PARENT "INDEX"